import http from './index'

export function list(page) {
  return http.get('/member/asset/vote', {
    params: {
      page,
      limit: 10
    }
  })
}


export function asset(id, type, vote_to) {
  return http.put('/member/asset/vote/' + id, { type, vote_to })
}

export function batch(data) {
  return http.post('/member/asset/vote/batch', { data })
}